Skip to content

Retrieve features of predictive scoring model

Request

Retrieve the list of features used in the specified predictive scoring model.

Path
idinteger, (int64)required

Predictive Segment ID

Query
limitinteger, (int64), >= 1

limit of features. With this option, features are sorted by the absolute value of weights so that a client can get top features.

curl -i -X GET \
  'https://api-cdp.treasuredata.com/entities/predictive_segments/{id}/model/features?limit=1'

Responses

Succeeded to fetch the features

Bodyapplication/vnd.treasuredata.v1+json
dataobject
Response
{ "data": { "id": "string", "type": "predictive-segment-model", "attributes": { … } } }